package cn.edu.xmu.oomall.liquidation.model.vo;

import cn.edu.xmu.oomall.core.model.VoObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;

/**
 * @author HertzLiu
 * @create_time 2021/12/6 0:05
 * @package_name cn.edu.xmu.oomall.liquidation.model.vo
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LiquidatedListDetailRetVo implements VoObject {
    private Long id;
    private SimpleObjectVo shop;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern ="yyyy-MM-dd'T'HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime liquidDate;
    private Long expressFee;
    private Long commission;
    private Long point;
    private Long shopRevenue;
    private Byte state;
    private SimpleObjectVo creator;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", timezone = "GMT+8")
    private ZonedDateTime gmtCreate;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", timezone = "GMT+8")
    private ZonedDateTime gmtModified;
    private SimpleObjectVo modifier;

    @Override
    public Object createVo() {
        return this;
    }

    @Override
    public Object createSimpleVo() {
        return this;
    }
}
